package com.example.assignment01_javaee.Service;

import com.example.assignment01_javaee.Entity.Order;
import com.example.assignment01_javaee.Entity.Product;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface OrderService {
    //查询所有的order
    List<Order> getAllOrders();

    //根据order id查找
    Order getOrderById(int orderId);

    //增加order
    String createOrder(Order order);

    //更改order数据
    String updateOrder(int orderId,int count);

    //根据order id删除
    void deleteOrder(int orderId);
}
